import request from '@/utils/request'

// 查询变压器台账列表
export function listNyTrans(query) {
  return request({
    url: '/energy/nyTrans/list',
    method: 'get',
    params: query
  })
}

// 查询变压器台账详细
export function getNyTrans(id) {
  return request({
    url: '/energy/nyTrans/' + id,
    method: 'get'
  })
}

// 新增变压器台账
export function addNyTrans(data) {
  return request({
    url: '/energy/nyTrans',
    method: 'post',
    data: data
  })
}

// 修改变压器台账
export function updateNyTrans(data) {
  return request({
    url: '/energy/nyTrans',
    method: 'put',
    data: data
  })
}

// 删除变压器台账
export function delNyTrans(id) {
  return request({
    url: '/energy/nyTrans/' + id,
    method: 'delete'
  })
}
